<?php
class Core_db_master extends Core_db_abstract
{
	public static function getMaster()
	{
		static $db = null;
		
		if($db != null)
		{
			return $db;
		}
		
		$dbConfig['host'] = Core_config::getConfig('DB_MASTER_HOST');
		$dbConfig['port'] = Core_config::getConfig('DB_MASTER_PORT');
		$dbConfig['user'] = Core_config::getConfig('DB_MASTER_USER');
		$dbConfig['pwd'] = Core_config::getConfig('DB_MASTER_PWD');
		
		$db = self::_getDbConn($dbConfig);
		return $db;
	}
}